package com.jk1123.xml.config;

import org.apache.commons.digester3.Digester;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;

import java.io.IOException;

/**
 * @author huyoufu <https://github.com/huyoufu>
 * @TIME 2021-09-13 14:45
 * @description
 */
public class MimeTypeParser {
    public static void main(String[] args) {

        Digester digester=new Digester();
        try {
            digester.addObjectCreate("mappings", MimeTypes.class);


            Object parse = digester.parse(MimeTypeParser.class.getClassLoader().getResourceAsStream("com/jk1123/xml/config/mime-mapping.xml"));














        } catch (IOException e) {
            e.printStackTrace();
        } catch (SAXException e) {
            e.printStackTrace();
        }


    }
}
